<template>
  <vue-editor v-model="content" @text-change="handleInput" />
</template>

<script>
import { VueEditor, Quill } from "vue2-editor";

export default {
  components: { VueEditor },
  name: "fc-editor2",
  model: {
    prop: 'value',
    event: 'change'
  },
  data(){
    return {
      content:this.value
    }
  },
  methods:{
    handleInput (val) {
      console.log(val);
      this.$emit('change', this.content)
    },
  }
}
</script>

<style scoped>

</style>
